﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UDesktop.aspx.cs" Inherits="UDesktop" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>欢迎</title>
    <link rel="stylesheet" type="text/css" href="Scripts/resources/css/ext-all.css" />
    <link rel="stylesheet" type="text/css" href="Content/UIndex.css" />
    <script type="text/javascript" src="Scripts/ext-all.js"></script>
    <script type="text/javascript" src="Scripts/UIndex.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div style="display:none;">
            <div id="header">
                <h1 id="Sysword" class="x-panel-header" runat="server"></h1>
                <div id="logout"><div id="logoutIcon"></div>
                    <asp:LinkButton ID="LBlogout" runat="server" CausesValidation="False" OnClick="LBlogout_Click"
                        ForeColor="White" OnClientClick="return confirm('确认重新登录吗？');">注销</asp:LinkButton></div>
            </div>
            <ul id="UMenu" class="x-hidden mymenu" runat="server">
                <asp:Repeater runat="server" ID="UMenuList">
                    <ItemTemplate>
                        <li><a class="menubar" href='<%# Eval("page_url") %>' target="UFrame">
                            <%# Eval("page_title") %>
                        </a></li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
            <div id="content">                
                <iframe id="UFrame" name="UFrame" height="538px" width="100%" frameborder="0" scrolling="yes" marginwidth="0" marginheight="0" ></iframe>
               <script type="text/javascript">
                    function SetCwinHeight(){   
                        var h;
                        if(navigator.userAgent.indexOf("MSIE")>0){
                            h = document.getElementById("panel-1022").clientHeight 
                                - document.getElementById("header-1029").clientHeight;
                        }else{
                            h = document.getElementById("ext-gen1046").clientHeight;
                        }                     
                        document.getElementById("UFrame").height = h;
                    }
                    window.setInterval("SetCwinHeight()", 1000);
                </script> 
            </div>
        </div>
    </form>
</body>
</html>
